class Student(object):#创建类
    count = 0 # 定义类属性
    def __init__(self, name):#创建构造函数，初始化对象
        self.__name = name
        Student.count += 1#每创建一次对象，count加一

#以下为代码测试
xiaomin = Student('xiaomin')
xiaomin = Student('xiaomin')
xiaomin = Student('xiaomin')
xiaomin = Student('xiaomin')

print(Student.count)

#提问类属性的操纵权限怎么设定？